package com.stone.business.equipment.pojo;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * TEquipmentBase entity. 设备主表
 */
@Entity
@Table(name = "TAB_EQUIPMENT_BASE")
public class TEquipmentBase implements java.io.Serializable,Cloneable {

    // Fields
    private Long id;

    /**
     * 变电站id
     */
    private Long bdzid;
    
    /**
     * 本记录的参照记录ID
     */
    private Long modelid = Long.parseLong("0");

    /**
     * 间隔、瓶柜id
     */
    private Long typeid;
    
    /**
     * 电压等级
     */
    private String dydj;
    /**
     * 运行编号
     */
    private String yxbh;

    /**
     * 出场日期
     */
    private Date ccrq;

    /**
     * 投运日期
     */
    private Date tyrq;

    /**
     * 生产厂家
     */
    private String sccj;

    /**
     * 出厂编号
     */
    private String ccbh;

    /**
     * 1：一次设备 2： 二次设备
     */
    private String state;
    
    /**
     * 设备类型
     */
    private String sblx;
    
    /**
     * 装置名称(用于二次设备）
     */
    private String zzmc;
    
    /**
     * 装置类型2(用于二次设备）
     */
    private String zzlx2;
    
    /**
     * 装置型号(用于二次设备）
     */
    private String zzxh;
    
    /**
     * 软件版本号
     */
    private String rjbbh;
    
    /**
     * 程序生成时间
     */
    private Date cxscsj;
    
    /**
     * 校验码
     */
    private String jym;
    
    /**
     * 备注
     */
    private String bz;
    
	@Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_EQUIPMENT_BASE")
    @SequenceGenerator(name="SEQ_EQUIPMENT_BASE",allocationSize=1, sequenceName="SEQ_EQUIPMENT_BASE")
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

	public Long getBdzid() {
		return bdzid;
	}

	public void setBdzid(Long bdzid) {
		this.bdzid = bdzid;
	}

	public Long getTypeid() {
		return typeid;
	}

	public void setTypeid(Long typeid) {
		this.typeid = typeid;
	}

	public String getYxbh() {
		return yxbh;
	}

	public void setYxbh(String yxbh) {
		this.yxbh = yxbh;
	}

	public Date getCcrq() {
		return ccrq;
	}

	public void setCcrq(Date ccrq) {
		this.ccrq = ccrq;
	}

	public Date getTyrq() {
		return tyrq;
	}

	public void setTyrq(Date tyrq) {
		this.tyrq = tyrq;
	}

	public String getSccj() {
		return sccj;
	}

	public void setSccj(String sccj) {
		this.sccj = sccj;
	}

	public String getCcbh() {
		return ccbh;
	}

	public void setCcbh(String ccbh) {
		this.ccbh = ccbh;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getDydj() {
		return dydj;
	}

	public void setDydj(String dydj) {
		this.dydj = dydj;
	}

	public String getSblx() {
		return sblx;
	}

	public void setSblx(String sblx) {
		this.sblx = sblx;
	}

	public String getZzmc() {
		return zzmc;
	}

	public void setZzmc(String zzmc) {
		this.zzmc = zzmc;
	}

	public String getZzlx2() {
		return zzlx2;
	}

	public void setZzlx2(String zzlx2) {
		this.zzlx2 = zzlx2;
	}

	public String getZzxh() {
		return zzxh;
	}

	public void setZzxh(String zzxh) {
		this.zzxh = zzxh;
	}

	public String getRjbbh() {
		return rjbbh;
	}

	public void setRjbbh(String rjbbh) {
		this.rjbbh = rjbbh;
	}

	public Date getCxscsj() {
		return cxscsj;
	}

	public void setCxscsj(Date cxscsj) {
		this.cxscsj = cxscsj;
	}

	public String getJym() {
		return jym;
	}

	public void setJym(String jym) {
		this.jym = jym;
	}

	public String getBz() {
		return bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

	public Long getModelid() {
		return modelid;
	}

	public void setModelid(Long modelid) {
		this.modelid = modelid;
	}

	@Override
	public Object clone() throws CloneNotSupportedException {
		
		return super.clone();
	}

    
	
}